// vue.config.js
module.exports = {

  productionSourceMap: false,

  //打包app时放开该配置
  publicPath:'/',

  css: {
    loaderOptions: {
      less: {
        modifyVars: {
          /* less 变量覆盖，用于自定义 ant design 主题 */
          'primary-color': '#1890FF',
          'link-color': '#1890FF',
          'border-radius-base': '4px',
        },
        javascriptEnabled: true,
      }
    }
  },

  devServer: {
    port: 3000,
    host: 'localhost',
    proxy: {
      '/file-addr': {
        target: 'http://127.0.0.1:9090', //请求本地
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          "^/file-addr": ""
        }
      },
    }
  },

  lintOnSave: undefined
};
